package com.exam.service.impl;

import com.exam.mapper.FillQuestionMapper;
import com.exam.po.FillQuestion;
import com.exam.service.FillQuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author mahaoqi
 * @ClassName FillQuestionServiceImpl
 * @Description TODO
 * @Date 2021/1/11 20:42
 * @Version 1.0
 **/
@Service
public class FillQuestionServiceImpl implements FillQuestionService {

    @Autowired
    private FillQuestionMapper fillQuestionMapper;

    /**
     * 添加
     * @param record
     * @return
     */
    @Override
    public int Insert(FillQuestion record) {
        //System.out.println("填空题");
        int insert = fillQuestionMapper.insert(record);
       // System.out.println("---"+insert);
        return insert;
    }

    /**
     * 查询
     * @param questionid
     * @return
     */
    @Override
    public FillQuestion SelectByPrimaryKey(Integer questionid) {
        FillQuestion fillQuestion = fillQuestionMapper.selectByPrimaryKey(questionid);
        return fillQuestion;
    }
}
